package org.looop.chuck.http;

import org.apache.commons.httpclient.Header;
import org.apache.commons.httpclient.methods.GetMethod;

public class HttpGetMethod extends GetMethod {
	public HttpGetMethod(String url) {
		super(url);
	}

	protected void readResponseHeaders(org.apache.commons.httpclient.HttpState state, org.apache.commons.httpclient.HttpConnection conn) throws java.io.IOException ,org.apache.commons.httpclient.HttpException {
		getResponseHeaderGroup().clear();
        
        Header[] headers = HttpHeaderParser.parseHeaders(
            conn.getResponseInputStream(), getParams().getHttpElementCharset());
        getResponseHeaderGroup().setHeaders(headers);
	};
}
